package com.lxw.api.cms;

import com.lxw.framework.domain.cms.CmsPage;
import com.lxw.framework.domain.cms.request.QueryPageRequest;
import com.lxw.framework.domain.cms.response.CmsPageResult;
import com.lxw.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "cms页面操作", description = "cms页面的基本操作")
public interface CmsPageControllerApi {


    @ApiOperation(value = "根据条件分页查找页面信息")
    //查询cms页面信息
    public QueryResponseResult findList(Integer page, Integer pageSize, QueryPageRequest qpr);

    @ApiOperation(value = "添加页面")
    public CmsPageResult add(CmsPage cmsPage);

    @ApiOperation(value = "通过ID查询页面信息")
    public CmsPageResult findById(String pageId);

    @ApiOperation(value = "更新页面")
    public CmsPageResult savePage(CmsPage cmsPage);


    @ApiOperation(value = "删除页面")
    public CmsPageResult delPage(String pageId);


    @ApiOperation(value = "页面发布")
    public CmsPageResult postPage(String pageId);

}
